package com.example.exception;


import com.example.common.response.ResultCode;
import com.example.common.response.ResultCode;

public class ExceptionCast {

    //使用此静态方法抛出自定义异常
    public static void cast(ResultCode resultCode) {
        if(!resultCode.message().contains("令牌校验失败")){
            throw new CustomException(resultCode);
        }
    }
}